package com.be.beadmin.service.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 17:14 2023/2/7
 * @Modified By:
 **/
@Entity
@Getter
@Setter
@Table(name="sys_dict_value")
public class DictValue extends BaseEntity {
    @Column(name = "SerialNo",columnDefinition = "VARCHAR(50) COMMENT '流水号' ")
    private String serialNo;

    /**
     * 关联主表ID
     */
    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "DICT_DATA_ID",columnDefinition = "VARCHAR(45) COMMENT '字典数据ID' ")
    private DictData dictData;

    @Column(name = "value",columnDefinition = "VARCHAR(50) COMMENT '字典名'  ")
    private String value;

    @Column(name = "KeyValue",columnDefinition = "VARCHAR(50) COMMENT '字典值'")
    private String keyValue;

    @Column(name = "Memo",columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String memo;

    @Column(name = "Reserved",columnDefinition = "VARCHAR(50) COMMENT '预留' ")
    private String reserved;

}
